home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / apport / package-hooks / usplash.py < prev    next >
Encoding:
Python Source  |  2009-02-07  |  814 b   |  24 lines

  1. ''' apport package hook for usplash
  2.  
  3. (c) 2007-2009 Canonical Ltd.
  4. Contributors:
  5. Brian Murray <brian@ubuntu.com>
  6. Martin Pitt <martin.pitt@ubuntu.com>
  7.  
  8. do not file bugs about crashes in libx86, since they are due to buggy BIOSes
  9. and we cannot do anything about them anyway '''
  10.  
  11. from apport.hookutils import *
  12.  
  13. def add_info(report):
  14.  
  15.     attach_file_if_exists(report, '/etc/usplash.conf', 'UsplashConf')
  16.     attach_file_if_exists(report, '/boot/grub/menu.lst', 'MenuLst')
  17.     attach_hardware(report) 
  18.  
  19.     if report.has_key('StacktraceTop'):
  20.         top_fn = report['StacktraceTop'].splitlines()[0]
  21.         if 'libx86.so' in top_fn or 'run_vm86' in top_fn:
  22.             report['UnreportableReason'] = 'The crash happened in the firmware of \
  23. the computer ("BIOS"), which cannot be influenced by the operating system.'
  24.